"use strict";

var _vue = require("vue");
var _core = require("@vxe-ui/core");
var _widgetText = require("../widget-text");
var _widgetRow = require("../widget-row");
var _widgetSubtable = require("../widget-subtable");
var _widgetInput = require("../widget-input");
var _widgetTextarea = require("../widget-textarea");
var _widgetSelect = require("../widget-select");
var _widgetVxeInput = require("../widget-vxe-input");
var _widgetVxeNumberInput = require("../widget-vxe-number-input");
var _widgetVxeDatePicker = require("../widget-vxe-date-picker");
var _widgetVxeTextarea = require("../widget-vxe-textarea");
var _widgetVxeSwitch = require("../widget-vxe-switch");
var _widgetVxeSelect = require("../widget-vxe-select");
var _widgetVxeTreeSelect = require("../widget-vxe-tree-select");
var _widgetVxeRadioGroup = require("../widget-vxe-radio-group");
var _widgetVxeCheckboxGroup = require("../widget-vxe-checkbox-group");
var _widgetVxeUploadFile = require("../widget-vxe-upload-file");
var _widgetVxeUploadImage = require("../widget-vxe-upload-image");
var _widgetVxeRate = require("../widget-vxe-rate");
var _widgetVxeSlider = require("../widget-vxe-slider");
/**
 * 表单设计器 - 渲染器
 */
_core.renderer.mixin({
  text: {
    createFormDesignWidgetConfig: _widgetText.getWidgetTextConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetText.WidgetTextViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetText.WidgetTextFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  /**
   * 已废弃
   */
  title: {
    createFormDesignWidgetConfig: _widgetText.getWidgetTextConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetText.WidgetTextViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetText.WidgetTextFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  row: {
    createFormDesignWidgetConfig: _widgetRow.getWidgetRowConfig,
    renderFormDesignWidgetEdit(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetRow.WidgetRowEditComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetRow.WidgetRowViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetRow.WidgetRowFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  subtable: {
    createFormDesignWidgetConfig: _widgetSubtable.getWidgetSubtableConfig,
    renderFormDesignWidgetEdit(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetSubtable.WidgetSubtableEditComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetSubtable.WidgetSubtableViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetSubtable.WidgetSubtableFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  input: {
    createFormDesignWidgetConfig: _widgetInput.getWidgetInputConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetInput.WidgetInputViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetInput.WidgetInputFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  textarea: {
    createFormDesignWidgetConfig: _widgetTextarea.getWidgetTextareaConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetTextarea.WidgetTextareaViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetTextarea.WidgetTextareaFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  select: {
    createFormDesignWidgetConfig: _widgetSelect.getWidgetSelectConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetSelect.WidgetSelectViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetSelect.WidgetSelectFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  VxeInput: {
    createFormDesignWidgetConfig: _widgetVxeInput.getWidgetVxeInputConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeInput.WidgetVxeInputViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeInput.WidgetVxeInputFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  VxeNumberInput: {
    createFormDesignWidgetConfig: _widgetVxeNumberInput.getWidgetVxeNumberInputConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeNumberInput.WidgetVxeNumberInputViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeNumberInput.WidgetVxeNumberInputFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  VxeDatePicker: {
    createFormDesignWidgetConfig: _widgetVxeDatePicker.getWidgetVxeDatePickerConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeDatePicker.WidgetVxeDatePickerViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeDatePicker.WidgetVxeDatePickerFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  VxeTextarea: {
    createFormDesignWidgetConfig: _widgetVxeTextarea.getWidgetVxeTextareaConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeTextarea.WidgetVxeTextareaViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeTextarea.WidgetVxeTextareaFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  VxeSwitch: {
    createFormDesignWidgetConfig: _widgetVxeSwitch.getWidgetVxeSwitchConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeSwitch.WidgetVxeSwitchViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeSwitch.WidgetVxeSwitchFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  VxeSelect: {
    createFormDesignWidgetConfig: _widgetVxeSelect.getWidgetVxeSelectConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeSelect.WidgetVxeSelectViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeSelect.WidgetVxeSelectFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  VxeTreeSelect: {
    createFormDesignWidgetConfig: _widgetVxeTreeSelect.getWidgetVxeTreeSelectConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeTreeSelect.WidgetVxeTreeSelectViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeTreeSelect.WidgetVxeTreeSelectFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  VxeRadioGroup: {
    createFormDesignWidgetConfig: _widgetVxeRadioGroup.getWidgetVxeRadioGroupConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeRadioGroup.WidgetVxeRadioGroupViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeRadioGroup.WidgetVxeRadioGroupFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  VxeCheckboxGroup: {
    createFormDesignWidgetConfig: _widgetVxeCheckboxGroup.getWidgetVxeCheckboxGroupConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeCheckboxGroup.WidgetVxeCheckboxGroupViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeCheckboxGroup.WidgetVxeCheckboxGroupFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  VxeUploadFile: {
    createFormDesignWidgetConfig: _widgetVxeUploadFile.getWidgetVxeUploadFileConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeUploadFile.WidgetVxeUploadFileViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeUploadFile.WidgetVxeUploadFileFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  VxeUploadImage: {
    createFormDesignWidgetConfig: _widgetVxeUploadImage.getWidgetVxeUploadImageConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeUploadImage.WidgetVxeUploadImageViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeUploadImage.WidgetVxeUploadImageFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  VxeRate: {
    createFormDesignWidgetConfig: _widgetVxeRate.getWidgetVxeRateConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeRate.WidgetVxeRateViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeRate.WidgetVxeRateFormComponent, {
        renderOpts,
        renderParams
      });
    }
  },
  VxeSlider: {
    createFormDesignWidgetConfig: _widgetVxeSlider.getWidgetVxeSliderConfig,
    renderFormDesignWidgetView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeSlider.WidgetVxeSliderViewComponent, {
        renderOpts,
        renderParams
      });
    },
    renderFormDesignWidgetFormView(renderOpts, renderParams) {
      return (0, _vue.h)(_widgetVxeSlider.WidgetVxeSliderFormComponent, {
        renderOpts,
        renderParams
      });
    }
  }
});